package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.OrderDeliverLogMapper;
import com.weixing.mall.provider.model.domain.OrderDeliverLog;
import com.weixing.mall.provider.service.IOrderDeliverLogService;
import lombok.Synchronized;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单模块-订单发货操作记录
 * </p>
 *
 * @author Small
 * @since 2020-08-17
 */
@Service
public class OrderDeliverLogServiceImpl extends ServiceImpl<OrderDeliverLogMapper, OrderDeliverLog> implements IOrderDeliverLogService {

    @Override
    @Synchronized
    public void addOrderDeliverLog(Long orderId,Long operatorId){
        OrderDeliverLog orderDeliverLog = new  OrderDeliverLog();
        orderDeliverLog.setOrderId(orderId);
        orderDeliverLog.setOperatorId(operatorId);
        save(orderDeliverLog);
    }

}
